<?php
    /* @author huangchuting
     * @time 2020.6.8
     * 对回复进行删除
     * @param reviewId replyId
     *  */
    header("Content-type:text/html;charset=utf-8");
    require_once '../inc/reply.php';
    $reviewId=$_GET["reviewId"];
    if (isset($_GET["replyId"])) 
    {
        $result=deleteReply($_GET["replyId"]);
        header("location:../style/review.php?reviewId=$reviewId");
        return;
    }
    else 
    {
        echo "<script language='JavaScript'>;alert('我也不知道为什么删除不成功，人品问题吧');window.location.href='../style/review.php?reviewId=$reviewId';</script>";
        return; 
    }
?>